package main;

import java.io.IOException;

/**
 * 
 * @author Peng
 *
 */

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		
		if(SaveLoadGame.isGameSaved())
		{
			SaveLoadGame.load();
			System.out.println(SaveLoadGame.originalProblem);
			System.out.println(SaveLoadGame.userSolution);
			SudokuBorder sudoku = new SudokuBorder(SaveLoadGame.originalProblem);
			sudoku.loadPanelText(SaveLoadGame.userSolution);
			sudoku.solution = SaveLoadGame.solution;
			sudoku.sudokuMatrixSolution=Sudoku.parseToInt(sudoku.solution);
			sudoku.setVisible(true);
			System.out.println("There is a saved game!");
			
		}
		else
		{
			@SuppressWarnings("unused")
			SudokuBorder sudoku = new SudokuBorder();
		}

	}

}
